Skip to content

Conversation

@Krishna-web-hub
Copy link
Contributor

@Krishna-web-hub Krishna-web-hub commented Feb 7, 2026

  • This fixes the slotstate issue for an object’s __slots__ saved during pickling.
  • This also fixes the difference in slotstate behavior in pickle.py and _pickle.c .
  • Added the NEWS file.

@da-woods
Copy link
Contributor

da-woods commented Feb 8, 2026

I don't think this actually makes the C and Python implementations equivalent. What happens if slotstate is provided but is None?

@Krishna-web-hub
Copy link
Contributor Author

Krishna-web-hub commented Feb 9, 2026

Hi @da-woods, if slotstate is none , then there are no __slots__ to restore ,so unpickling skips slot restoration. matching the behavior of __pickle.c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants